package com.rookie.rookiemeeting.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author henry-ong
 * @since 2023-12-23
 */
@Data
@TableName("mypass")
@ApiModel(value = "Mypass对象", description = "测试结果表")
@AllArgsConstructor
@NoArgsConstructor
public class Mypass implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("学号")
    @TableField(value="userName")
    private String userName;

    @ApiModelProperty("测试Id")
    @TableField(value="testId")
    private Integer testId;

    @ApiModelProperty("通过标志，0-未通过,1-通过")
    private Integer pass;

    @ApiModelProperty("测试提交时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value="passDate")
    private Date passDate;

    @ApiModelProperty("当时的答案")
    private String myanswer;
}
